package com.jjy.ideaplugin;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;

/**
 * 游戏通关利器
 *
 * @author jinjiayu 2024/10/11
 */
public class GameAction extends AnAction {
    @Override
    public void actionPerformed(AnActionEvent event) {
        Project project = event.getData(PlatformDataKeys.PROJECT);
        String txt= Messages.showInputDialog(project, "您想通关哪款游戏?", "通关利器", Messages.getQuestionIcon());
        Messages.showMessageDialog(project, "恭喜您通关了 " + txt + " !", "结果", Messages.getInformationIcon());
    }
}